package com.gjy.service;

import com.gjy.dao.UserDao;
import com.gjy.vo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements  UserService{

    @Autowired
    private UserDao userDao;

    public User getById(int id){
        return userDao.getById(id);
    }

    public List<User> query(int[] ids) {
        return userDao.query(ids);
    }

    public int batchUpdatePwd(String[] ids, String pwd) {
        return userDao.batchUpdatePwd(ids,pwd);
    }
}
